<template>
  <div id="app">
    <!-- <img alt="Vue logo" src="./assets/logo.png" /> -->
    <!-- <HelloWorld msg="Welcome to Your Vue.js App" /> -->
    <!-- <AlmButton /> -->
    <el-button @click="callChildFunc">调用子组件方法</el-button>
    <alm-button ref="child" @custom-event="parentMethod" />
  </div>
</template>

<script>
// import HelloWorld from "./components/HelloWorld.vue";
// import AlmButton from "./package/alm-button/index.vue";

export default {
  name: "App",
  components: {
    // HelloWorld,
    // AlmButton,
  },
  methods: {
    parentMethod(data) {
      console.log(data);
    },
    callChildFunc() {
      this.$refs.child.someFunc("这是来自父组件的数据");
    },
  },
};
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
